package com.sz.mes.entity;

import java.util.Date;
import java.lang.Double;
import java.math.BigDecimal;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.hibernate.validator.constraints.Length;
import java.util.List;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.sz.mes.entity.BaseCustomEntity;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.diboot.core.util.D;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 设备 Entity定义
 * @author hem
 * @version 1.0
 * @date 2023-06-06
 * Copyright © szhs
 */
@Getter @Setter @Accessors(chain = true)
@TableName("equipment")
public class Equipment extends BaseCustomEntity {
    private static final long serialVersionUID = 3829215754037203374L;

    /**
     * 设备编号
     */
    @Length(max=100, message="设备编号长度应小于100")
    @TableField()
    private String equipmentNumber;

    /**
     * 设备名称
     */
    @Length(max=100, message="设备名称长度应小于100")
    @TableField()
    private String equipmentName;

    /**
     * 设备型号
     */
    @Length(max=100, message="设备型号长度应小于100")
    @TableField()
    private String equipmentModel;

    /**
     * 使用部门
     */
    @Length(max=100, message="使用部门长度应小于100")
    @TableField()
    private String userDepartment;

    /**
     * 管理负责人
     */
    @Length(max=100, message="管理负责人长度应小于100")
    @TableField()
    private String managementResponsiblePerson;

    /**
     * 设备类型
     */
    @Length(max=100, message="设备类型长度应小于100")
    @TableField()
    private String equipmentType;

    /**
     * 设备sn号
     */
    @Length(max=100, message="设备sn号长度应小于100")
    @TableField()
    private String macSn;

    /**
     * 设备图片
     */
    @Length(max=100, message="设备图片长度应小于100")
    @TableField()
    private String equipmentPic;

    /**
     * 设备是否被占用 0空1占用中
     */
    @TableField()
    private Long status;

    @TableField(exist = false)
    private List<String> fileUuidList;

    @TableField(exist = false)
    private String taskNum;

    @TableField(exist = false)
    private String productSpecification;

    @TableField(exist = false)
    private String productNum;
} 
